import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/login",
      name: "login",
      component: () => import("../views/login/login.vue"),
      
    },
    {
      path: "/foundback",
      name: "foundback",
      component: () => import("../views/login/foundback.vue"),
    },
    {
      path: "/",
      name: "index",
      component: () => import("../views/index.vue"),
    },

    {
      path: "/register",
      name: "register",
      component: () => import("../views/login/register.vue"),
    },
    {
      path: "/appointment",
      name: "appointment",
      component: () => import("../views/appointment.vue"),
    },
    {
      path: "/personal",
      name: "personal",
      component: () => import("../views/personal.vue"),
    },
    {
      path: "/hospital",
      name: "hospital",
      component: () => import("../views/hospital.vue"),
    },
    {
      path: "/setmeal",
      name: "setmeal",
      component: () => import("../views/setmeal.vue"),
    },
    {
      path: "/selectdate",
      name: "selectdate",
      component: () => import("../views/date.vue"),
    },
    {
      path: "/confirmorder",
      name: "confirmorder",
      component: () => import("../views/confirmorder.vue"),
    },
    {
      path: "/appointmentsuccess",
      name: "appointmentsuccess",
      component: () => import("../views/appointmentsuccess.vue"),
    },
    {
      path: "/appointmentlist",
      name: "appointmentlist",
      component: () => import("../views/appointmentlist.vue"),
    },
    {
      path: "/appointmentcancel",
      name: "appointmentcancel",
      component: () => import("../views/appointmentcancel.vue"),
    },
    {
      path: "/report",
      name: "report",
      component: () => import("../views/report/report.vue"),
    },
    {
      path: "/reportlist",
      name: "reportlist",
      component: () => import("../views/report/reportlist.vue"),
    },
    {
      path: "/question",
      name: "question",
      component: () => import("../views/QuestionView.vue"),
    },
  ],
});

export default router;
